<?php
namespace app\manager\model;

use think\Model;

class DriverTypes extends \think\Model
{
    //多语言实现
    protected $table = 'driver_types';
    

    
    /**
     * 获取房车品牌信息
     * @param  [type] $getTypeArray [description]
     * @return [type]               [description]
     */
    public function getDriverTypeInfo($getTypeArray)
    {
    	return self::get($getTypeArray);
    }

   

    public function getDriverTypesLists(){
        return self::select();
    }

    public function createDriverType($post_drivertype_info)
    {
        return $this->create($post_drivertype_info);
    }

    public function updateDriverType($id, $post_drivertype_info)
    {
        return $this->where('id',$id)->update($post_drivertype_info);
    }

    public function delInfo($id)
    {
        $result = $this->destroy($id);
        if ($result) {
            return true;
        }
        return false;
    }

}